package org.jeecg.demo.wx.convert;


import org.jeecg.demo.wx.entity.RlSchedule;
import org.jeecg.demo.wx.vo.QueryScheduleVO;
import org.jeecg.demo.wx.vo.WorkHandlingVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface ScheduleTransfer {
    ScheduleTransfer INSTANCE = Mappers.getMapper(ScheduleTransfer.class);

    /**
     * 转查询参数
     *
     * @param param
     * @return
     */
    List<QueryScheduleVO> toQuerySchedule(List<RlSchedule> param);

    QueryScheduleVO toQuerySchedule(RlSchedule param);

    WorkHandlingVO toWorkHandling(RlSchedule collect);
    List<WorkHandlingVO> toWorkHandling(List<RlSchedule> collect);
}
